﻿#include "CmdLineChartLineChartStraightLineSelectChange.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdLineChartLineChartStraightLineSelectChange::CmdLineChartLineChartStraightLineSelectChange()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdLineChartLineChartStraightLineSelectChange::~CmdLineChartLineChartStraightLineSelectChange()
    {
    }

    bool CmdLineChartLineChartStraightLineSelectChange::execute()
    {
        bool _success = false;
        emit IBaseSignalInstance->signal_lineChartLineChartStraightLineSelectChange(m_id, m_selected);
        return true;
    }

    void CmdLineChartLineChartStraightLineSelectChange::undo()
    {
        // TODO: undo
    }

    void CmdLineChartLineChartStraightLineSelectChange::redo()
    {
        execute();
    }

}
